<?php
class IndexController extends Yaf_Controller_Abstract {

   	public function init(){
         if(is_null(Yaf_Session::getInstance()->get(AK47))){
           $this->redirect('/index.php/Admin/Login/login');
         }
         if ($this->getRequest()->isXmlHttpRequest()) {
            Yaf_Dispatcher::getInstance()->disableView();
         }

   		$this->setViewPath(APP_PATH . '/application/modules/Admin/views');
         $data = array(
            'index_li_active'=>"class='active'"
            );
         $this->getView()->assign($data);

   	}
      public function indexAction(){
         // Yaf_Session::getInstance()->del(AK47);
         $this->getView()->assign("title", '惠信后台管理');
      }
}

?>
